package com.gengzp.rpc.factory;

import com.gengzp.rpc.core.RemoteTransactionalHandler;
import com.gengzp.rpc.interceptor.RpcHttpRequestInterceptor;

/**
 * @ClassName RpcBeanFactory
 * @Description 远程调用框架bean工厂
 * @Author gengzp
 * @Date 2025/6/1 15:00
 */
public interface RpcBeanFactory {

    /**
     * 获取远程调用框架拦截器
     *
     * @return RpcHttpRequestInterceptor
     */
    RpcHttpRequestInterceptor getRpcHttpRequestInterceptor();

    /**
     * 获取远程事务处理器
     *
     * @return RemoteTransactionalHandler
     */
    RemoteTransactionalHandler getRemoteTransactionHandler();

}
